package com.hqq.architectural.cqrs.queries;


import com.hqq.architectural.cqrs.dto.Author;
import com.hqq.architectural.cqrs.dto.Book;

import java.math.BigInteger;
import java.util.List;

/**
 * IQueryService 完成查询功能的接口
 * Created by heqianqian on 2017/8/18.
 */
public interface IQueryService {

    Author getAuthorByUsername(String username);

    Book getBook(String title);

    List<Book> getAuthorBooks(String username);

    BigInteger getAuthorBooksCount(String username);

    BigInteger getAuthorsCount();
}
